import { useRouter } from "next/router"

export const RouterButton = () => {
    const router = useRouter();
    return (
        <div style={{marginTop: '1rem',marginBottom: '1rem',display:'flex',gap:'0.5rem'}}>
            <button onClick={()=> router.back()}>Back</button>
            <button onClick={()=> router.push('/')}>Home</button>
        </div>       
   )
}
  